package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.*;
import static org.jsola.hr.example.UserRegisterCensorExample.*;

/**
 * 管理员审核注册申请
 *
 * @author huangrun
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【注册审核表】的审核状态和拒绝原因参数")
@Data
public class UserRegisterCensorAdminUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 3953506243761519348L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_AUDIT_STATUS, example = E_AUDIT_STATUS)
    private Integer auditStatus;

    @ApiModelProperty(notes = N_DENIAL_REASON, example = E_DENIAL_REASON)
    @Length(max = 100, message = M_DENIAL_REASON_MAX)
    private String denialReason;
}
